package com.hr.util;

import java.util.Properties;
/**
 * 系統資源文件加載類
 * @author fazhen.zheng
 *
 */
public class PropertyUtils {
	static Properties prop  = new Properties();
	static{
		try {
			prop.load(PropertyUtils.class.getClassLoader().getResourceAsStream("kaoqin.conf"));
		} catch (Exception e) {
			System.err.println("找不到配置文件:"+e.getMessage());
		}
	}
	public static String get(String key){
		return prop.getProperty(key);
	}
	public static void set(String key ,String value){
		prop.setProperty(key, value);
	}
}
